//
//  CXDestinationDataModel.m
//  Travel
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 doll. All rights reserved.
//

#import "CXDestinationDataModel.h"

@implementation CXDestinationDataModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"type"]) {
        self.typeId = value;
    }
    
    if ([key isEqualToString:@"id"]) {
        if ([[value class] isSubclassOfClass:[NSNumber class]]) {
            self.valueId = [NSString stringWithFormat:@"%@", value];
        }
        else
        {
            self.valueId = value;
        }
    }
}


@end
